import {secklist} from "../../requset/api"
export const state={
    list:[]
}

export const mutations={
    changeseck(state,arr){
        state.list=arr
    }
}

export const actions={
    reqChangeSeck(context){
        secklist().then(res=>{
            let list=res.data.list?res.data.list:[];
            context.commit("changeseck",list)
        })
    }
}

export const getters={
    list(state){
        return state.list
    }
}

export default{
    state,
    mutations,
    actions,
    getters,
    namespaced:true
}